package tv.acgn.advertisement.publish.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import tv.acgn.advertisement.publish.exception.AbstractAdPubException;
import tv.acgn.advertisement.publish.service.AdUnitService;
import tv.acgn.advertisement.publish.vo.adunit.AdUnitInterestRequestVO;
import tv.acgn.advertisement.publish.vo.adunit.AdUnitInterestResponseVO;

/**
 * @author : junG
 * @program : advertisement-ad-pub-action
 * @description : 推广单元兴趣 分发器
 * @date : 2019-06-02 15:03
 **/

@RestController
public class AdUnitInterestAction {

    @Autowired
    private AdUnitService adUnitService;

    @PostMapping("/unit/interest")
    public AdUnitInterestResponseVO add(@RequestBody AdUnitInterestRequestVO requestVO) throws AbstractAdPubException {
        return adUnitService.addAdUnitInterest(requestVO);
    }
}
